Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Isaicp 4392: Change the 'Cancel account' button label on the user cancel form #1215

Merged
merged 4 commits into from
Jun 7, 2018

Conversation

idimopoulos
Copy link
Contributor

No description provided.

@idimopoulos idimopoulos force-pushed the ISAICP-4392 branch 2 times, most recently from adb089f to 228767c Compare June 5, 2018 09:42
@@ -65,6 +65,9 @@ public function buildForm(array $form, FormStateInterface $form_state) {
$collections = $this->relationManager->getCollectionsWhereSoleOwner($this->entity);

if (!empty($collections)) {
// No access to the 'Cancel' button should be given if the user is the
// sole owner of a collection.
$form['actions']['submit']['#access'] = FALSE;
Copy link
Contributor

@pfrenssen pfrenssen Jun 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with this but shouldn't we solve this differently? I would suggest to show a greyed out version of the button with a tooltip "This user cannot be deleted since it is the owner of a collection".

This is out of scope for this ticket so I made a followup for it: ISAICP-4555

@pfrenssen pfrenssen merged commit ddaa5d1 into develop Jun 7, 2018
@pfrenssen pfrenssen deleted the ISAICP-4392 branch June 7, 2018 10:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants